import 'package:get/get.dart';

class DataShareController extends GetxController {
  RxInt count = 0.obs;

  void increase() {
    count++;
    //调用update()方法，才会触发Obx函数
    update();
  }

  void decrease() {
    count--;
    update();
  }
}
